<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<body>
	<form id="form" action="system/permission?query"
		class="form-inline well">
		<c:forEach items="${permissions}" var="function">
		<fieldset>
			<legend>${function }</legend>
			<c:forEach items="${t}" var="permission">
				<c:if test="${function==permission.function}">
				<label class="checkbox"> <input name="${permission.function }" type="checkbox"
					value="${permission.id },${permission.function }"> ${permission.method }
				</label>
				</c:if>
			</c:forEach>
		</fieldset>
		</c:forEach>
	</form>
</body>
</html>